(function(){
	'use strict';
	
	angular.module('zhx-ring',['zhx-ring-buttons']);

	angular.module('zhx-ring').controller("zhxRingContrl",function($scope){

		$scope.ringOptions = {
			ringWraperRadius : 150,
			ringRadius : 55,
			// duration : 150,
			rings : [
				{ "name": "1", "icon": "iconfont icon-shuipingzuo", "event" : "event_1" },
				{ "name": "2", "icon": "iconfont icon-shuangyuzuo", "event" : "event_2" },
				{ "name": "3", "icon": "iconfont icon-mojiezuo", "event" : "event_3" },
				{ "name": "4", "icon": "iconfont icon-chunvzuo", "event" : "event_4" },
				{ "name": "5", "icon": "iconfont icon-shizizuo", "event" : "event_5" },
				{ "name": "6", "icon": "iconfont icon-juxiezuo", "event" : "event_6" },
				{ "name": "7", "icon": "iconfont icon-tianhezuo", "event" : "event_7" },
				{ "name": "8", "icon": "iconfont icon-sheshouzuo", "event" : "event_8" },
				{ "name": "8", "icon": "iconfont icon-tianchengzuo", "event" : "event_9" },
				{ "name": "8", "icon": "iconfont icon-shuangzizuo", "event" : "event_10" },
				{ "name": "8", "icon": "iconfont icon-jinniuzuo", "event" : "event_11" },
				{ "name": "8", "icon": "iconfont icon-muyangzuo", "event" : "event_12" }
			]
		};

		$scope.event_1 = function(event, scope){
			console.log( 'event_1:', scope );
		};

		$scope.event_2 = function(event, scope){
			console.log( 'event_2:', event );
		};


	})

})()

